package com.tjetc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tjetc.entity.Admin;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper extends BaseMapper<Admin> {
    Admin selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    /**
     * 根据username进行模糊匹配分页查询
     * @param username
     * @return
     */
    Page<Admin> selectPageLikeUsername(Page<Admin> pageAdmin, String username);
    Admin selectByUsername(String username);
    Long selectEmpolyeeId(Long id);
}